{% if task %}
<div class="task_single task_{{ task.id }}">
    {% if tasks_tags_checkbox %}
    <input type="checkbox" name="tasks_list_due" 
            onchange="javascript:tasks_list_due_cb({{ task.id }}, this);" 
        {% if task.done %}
            checked="checked"
        {% endif %}
                class="task_checkbox_{{ task.id }}"
    />
    {% endif %}
    <span class="task_text_{{ task.id }} {% if not tasks_tags_sidebar %}task_name{% endif %} {% if task.done %}task_done{% endif %}">
        {% if tasks_tags_responsible %}
            <span style="font-size: small;
                {% ifequal session.persona_id task.responsible_id %}
                     background: #ff9; 
                {% endifequal %}"
            >
                {% ifequal session.persona_id task.responsible_id %}
                    You</span> 
                {% else %}
                    {{ task.responsible }}</span>
                {% endifequal %}
        {% endif %}
        <a href="/tasks/{{ task.id }}">{{ task.title }}</a>
        {% if tasks_tags_preview %}
        <span class="task_preview">
            <!--
            {% if tasks_tags_preview %}
                {{ task.body|truncatewords:15 }} 
            {% endif %}
            -->
            {% if tasks_tags_reply %}
                {% if task.reply %}
                    (re: <a href="/notes/{{ task.reply.id }}">{{ task.reply }}</a>)
                {% endif %}
            {% endif %}
        </span>
        {% endif %}
        {% if tasks_tags_date %}
        <span class="task_date">
            [{{ task.due|date:"D j, F" }}]
        </span>
        {% endif %}
        {% if tasks_tags_actions %}
        <span class="task_actions">
            <a href="/tasks/delete/{{ task.id }}" class="delete">[x]</a>
        </span>
        {% endif %}
    </span>
</div>
{% endif %}
